package cn.puge.mertisfront.controller;


import cn.puge.commonutils.R;
import cn.puge.mertisfront.entity.TestPayDes;
import cn.puge.mertisfront.service.TestPayDesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author LIJW
 * @since 2021-01-25
 */
@CrossOrigin
@RestController
@RequestMapping("/mertisfront/test-pay-des")
public class TestPayDesController {

    @Autowired
    private TestPayDesService testPayDesService;

    /**
     * 查询出所有商品
     */
    @GetMapping("getAllInfo")
    public R getAllInfo(){
        List<TestPayDes> list = testPayDesService.list(null);

        return R.ok().data("list",list);
    }
}

